<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>登录 - 张三个人站</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 复用首页同款渐变背景 -->
    <style>
        *{margin:0;padding:0;box-sizing:border-box;}
        body{
            font-family:'Segoe UI','Microsoft YaHei',sans-serif;
            height:100vh;
            display:flex;
            align-items:center;
            justify-content:center;
            background:linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        }
        .login-box{
            width:360px;
            padding:40px 30px;
            background:rgba(15,23,42,.7);
            border-radius:15px;
            border:1px solid rgba(94,234,212,.2);
            box-shadow:0 8px 32px rgba(2,8,20,.4);
            backdrop-filter:blur(10px);
        }
        .login-box h2{
            text-align:center;
            color:#38bdf8;
            margin-bottom:25px;
        }
        .login-box input[type="text"],
        .login-box input[type="password"]{
            width:100%;
            padding:12px 15px;
            margin:10px 0;
            border:none;
            border-radius:30px;
            background:rgba(30,41,59,.8);
            color:#e0e0e0;
            font-size:14px;
            outline:none;
            transition:.3s;
        }
        .login-box input:focus{
            background:rgba(56,189,248,.15);
            box-shadow:0 0 10px rgba(56,189,248,.3);
        }
        .login-box button{
            width:100%;
            padding:12px;
            margin-top:15px;
            border:none;
            border-radius:30px;
            background:linear-gradient(90deg, #0ea5e9, #14b8a6);
            color:#fff;
            font-size:16px;
            cursor:pointer;
            transition:.3s;
        }
        .login-box button:hover{
            transform:translateY(-2px);
            box-shadow:0 8px 20px rgba(56,189,248,.4);
        }
        .login-box .err{
            color:#f87171;
            font-size:13px;
            text-align:center;
            margin-top:10px;
        }
    </style>
</head>
<body>
    <form class="login-box" action="/login" method="post">
        <h2>账号登录</h2>
        <input type="text"     name="user"  placeholder="用户名" required>
        <input type="password" name="pwd"   placeholder="密码"   required>
        <button type="submit">登 录</button>
        <div class="err">错误啦</div>   <!-- 服务端回写错误提示 -->
    </form>
</body>
</html>